var mongoose = require("mongoose");
var Schema = mongoose.Schema;

var schema = new Schema({
    title: String,
    content: String,
    user: { type: Schema.Types.ObjectId, ref: "user" }
})

module.exports = mongoose.model("essay", schema, "essays");